//
//  MasonryUseController.m
//  Objc进阶Demo
//
//  Created by Don't update on 2018/7/23.
//  Copyright © 2018年 Don't update. All rights reserved.
//

#import "MasonryUseController.h"
#import <Masonry.h>
@interface MasonryUseController ()
@property(nonatomic,strong)UIView *background;
@property(nonatomic,strong)UIVisualEffect *effect;
@end

@implementation MasonryUseController


-(UIView *)background{
    if (_background == nil) {
        _background = [[UIView alloc]init];
         [self.view addSubview:_background];
        _background.backgroundColor = [UIColor redColor];
        [_background mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@375);
            make.height.equalTo(@100);
            make.bottom.equalTo(@10);
            make.left.equalTo(@0);
        }];
       
    }
    return _background;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self background];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
